﻿@section Script
{
    <link href="~/Content/mvcpage/jquery.mvcpage.css" rel="stylesheet" />
    <script src="~/Content/mvcpage/jquery.mvcpage.js"></script>

    <link href="~/Content/window/window.css" rel="stylesheet" />
    <script src="~/Content/window/window.js"></script>

    <script type="text/javascript">
        $(function () {
            $(".pagectrl").mvcPage({
                url: '/user/ActivatePage',
                callBack: function (html) {
                    $(".list").html(html);
                }
            });
        });

        function search() {
            $(".pagectrl").mvcPage('option').queryParam.keyword = $('#keyword').val();
            $(".pagectrl").mvcPage('reload');
        }
        //var dishName = "";
        //window.messageBox("系统提示", "确认删除[" + dishName + "]吗?", function (r) {
        //    if (!r) return;
        //    $.post("/Dish/dishDel?id=" + dishId, $('form').serialize(), function (data) {
        //        if (data.state) {
        //            $(".pagectrl").mvcPage('reload');
        //        } else {
        //            window.messageBox('提示', data.value);
        //        }
        //    });
        //});

        function ActivateMenber(userId) {
            window.messageBox("系统提示", "确认激活？", function (r) {
                if (!r)
                    return;
            });

            $.post("/User/ActivateMenber", { id: userId }, function (data) {
                if (data.state) {
                    $(".pagectr1").mvcPage('reload');
                }
            });
        }
    </script>
}
<div>
    <ul class="breadcrumb">
        <li><a href="/user/activate">用户资料</a> <span class="divider">/</span></li>
        <li class="active">待激活会员</li>
    </ul>
</div>


<!--查询-->
<div class="toolbar">
    <div class="left-block">
        <input id="keyword" type="text" placeholder="关键字...">
        <button class="btn dropdown-toggle " type="button" onclick="search(); return false;" style="vertical-align: top;"><i class="icon-search"></i>查询</button>
    </div>
</div>

<table class="table table-bordered">
    <thead>
        <tr>
            <td>序号</td>
            <td>会员编号</td>
            <td>昵称</td>
            <td>级别名称</td>
            <td>投资金额</td>
            <td>注册时间</td>
            <td>状态</td>
            <td>操作</td>
        </tr>
    </thead>
    <tbody class="list">
    </tbody>
</table>
<div class="text-right pagectrl"></div>
